package com.suep.data_analysis.model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.*;
import java.util.Date;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("t_drive_property")
@JsonIgnoreProperties(ignoreUnknown = true)
public class DriveProperty extends Model<DriveProperty> {
    @TableId("property_id")
    private String propertyId;
    private String setId;
    private Integer position;
    private Integer rarity;
    private String mainStatType;        // 主属性类型
    private List<String> subStats;      // 副属性类型列表（直接映射JSON数组）
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}